package com.zhouwr.common.metadata;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.zhouwr.common.enums.ModelDataType;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @program: forallcn-iotps
 * @description: 基础数据
 * @author: zhouwr
 * @create: 2020-11-19 15:07
 * @version：1.0
 **/
@Data
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public abstract class Metadata<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    public abstract T getDefaultValue();
    public abstract ModelDataType getType();

    public String getUnitName() {
        return "";
    }

    public String getUnitSymbol() {
        return "";
    }

}
